home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Technology
/
INVENTORLABS_TECHNOLOGY.BIN
/
pc
/
files
/
shared.cst
/
00404_Script_Scrapbook parent
< prev
next >
Wrap
Text File
|
1997-07-24
|
3KB
|
82 lines
-- o ScrpBook
property pLabelTxtCast, pDescriptionTxtCast, pInstructionTxtCast
property pCurrPage, pActiveTextDB, pNumOfPages, pPageSnd
global gActiveInventor, gUtilityObj,gInventorIndexNum
--------------------------------------------------------------------------------------------------------------------
on mInit me
set pLabelTxtCast = the number of cast "labelTxt"
set pDescriptionTxtCast = the number of cast "descrTxt"
set pInstructionTxtCast = the number of cast "instrTxt"
set pPageSnd = 1392
return( me )
end mInit
--------------------------------------------------------------------------------------------------------------------
on mActivate me
if gInventorIndexNum = 1 then
set pNumOfPages = 7
set pActiveTextDB = the text of cast "Edison Scrapbook Text"
else if gInventorIndexNum = 2 then
set pNumOfPages = 13
set pActiveTextDB = the text of cast "Bell ScrapBook Text"
else if gInventorIndexNum = 3 then
set pNumOfPages = 4
set pActiveTextDB = the text of cast "Watt Scrapbook Text"
end if
set pCurrPage = 0
mSetCursors(gUtilityObj, [7:#operate])
end mActivate
--------------------------------------------------------------------------------------------------------------------
on mNextPage me
set pCurrPage = pCurrPage + 1
puppetsound 2, pPageSnd
if (pCurrPage = pNumOfPages) then mUnSetOneCursor(gUtilityObj, 7)
else if (pCurrPage = 1) then mSetCursors(gUtilityObj, [7:#Finger])
else mSetCursors(gUtilityObj, [7:#Finger,#8:#finger])
go the frame + 1
set startline = ((pCurrPage -1) * 6) + 1
set endline = (pCurrPage * 6)
set the text of cast pInstructionTxtCast = line startline to endline of pActiveTextDB
end mNextPage
--------------------------------------------------------------------------------------------------------------------
on mPrevPage me
puppetsound 2, pPageSnd
go the frame - 1
set pCurrPage = pCurrPage - 1
if (pCurrPage = 1) then mUnSetOneCursor(gUtilityObj, 8)
else if (pCurrPage = pNumOfPages) then mSetCursors(gUtilityObj, [8:#Finger])
else mSetCursors(gUtilityObj, [7:#Finger,#8:#finger])
set startline = ((pCurrPage -1) * 6) + 1
set endline = (pCurrPage * 6)
set the text of cast pInstructionTxtCast = line startline to endline of pActiveTextDB
end mPrevPage
--------------------------------------------------------------------------------------------------------------------
on mClose me
sound stop 2
set the text of cast pDescriptionTxtCast = " "
end mClose
--------------------------------------------------------------------------------------------------------------------